@mixin cle{
            content: "";
            display: block;
            clear: both;
            height: 0;
            font-size: 0;
            overflow: hidden;
        }
*{
    margin: 0;
    padding: 0;
}
li{
    list-style: none;
    font-size: 12px;
}
a{
    text-decoration: none;
}
i{
    font-style: normal;
}
body{
    background: #f9f9f9;
    font-family: "微软雅黑";
}

//top 区域

.header{
    width: 100%;
    height: 30px;
    padding-bottom: 145px;
    background: #333;
    .clearfix:after{
        @include cle;
    }
    >div{
        width: 1080px;
        margin: 0 auto;
        .header-nav{
            float: left;
            height: 30px;
            line-height: 30px;
            li{
                float: left;
                font-size: 12px;
                a{
                    color: #ccc;
                }
                span{
                    display: inline-block;
                    margin: 0 18px;
                }
            }
        }
        .header-user{
            float: right;
            height: 30px;
            font-size: 12px;
            >li{
                display: inline-block;
                height: 30px;
                line-height: 30px;
                color: #cdcdcd;
                vertical-align: middle;
                a{
                    color: #ccc;
                }
                .user-login{
                    margin-right: 20px;
                }
                >span{
                    display: inline-block;
                    margin: 0 18px;
                }
            }           
            .user-app{
                position: relative;
                div{
                    position: absolute;
                    top: 25px;
                    left: -38px;
                    z-index: 115;
                    display: none;
                    i{
                        position: relative;
                        z-index: 1;                        
                        display: block;                       
                        width: 30px;                        
                        height: 15px;                        
                        margin: 0 auto;
                        background: url(../images/index/triangle.png) no-repeat;
                    }
                    dl{
                        padding: 15px 10px 10px;
                        border-radius: 4px;
                        background: #fff;
                        box-shadow: 0 1px 10px 4px rgba(0,0,0,.05);
                        dt{
                            width: 40px;
                            height: 40px;
                            margin: 0 auto;
                            background: url(../images/index/appLogo.png) no-repeat;
                        }
                        dd{
                            margin-top: 10px;
                            line-height: 24px;
                            font-size: 12px;
                            color: #523669;
                            text-align: center;
                            h6{
                                font-size: 12px;
                                font-weight: normal;
                            }
                            p{
                                width: 130px;
                                height: 130px;
                                margin: 10px auto 0;
                                background: url(../images/index/app.png) no-repeat;
                                background-size: 100% 100%;
                            }
                        }
                    }
                }
            }
            .user-app:hover div{
                display: block;
            }
            .user-msg{
                .msg-center{
                    display: inline-block;
                    height: 30px;
                    line-height: 30px;
                    padding-left: 20px;
                    font-size: 12px;
                    text-align: center;
                    background: url(../images/index/msgcenter.png) no-repeat 2px 9px;
                    #hasMsg{
                        visibility: hidden;
                        overflow: hidden;
                        width: 5px;
                        height: 5px;
                        position: relative;
                        z-index: 122;
                        display: inline-block;
                        background: #f43431;
                        border-radius: 50%;
                        top: -7px;
                        left: -3px;
                    }
                    span{
                        display: inline-block;
                        width: 52px;
                    }
                    #unread{
                        margin-left: 5px;
                        margin-right: -5px;
                        display: inline-block;
                        width: 25px;
                        position: relative;
                        left: -10px;
                    }
                }
            }
            .user-shopCar{
                a{
                    display: inline-block;
                    width: 90px;
                    padding-left: 20px;
                    text-align: center;
                    background: #523669 url(../images/index/shopCar.png) no-repeat 15px 7px;
                }
                i{
                    padding-left: 4px;
                }
            }
        }
        ul li a:hover{
            color: #fff;
        }
    }
}

.header>div .header-user .user-center{
    position: relative;
    display: none;
    a{
        color: #ccc;
        
    }
    >i{
            display: inline-block;
            width: 9px;
            height: 4px;
            margin-left: 10px;
            background: url(../images/index/comSprite.png) no-repeat 0 -102px;
            vertical-align: middle;
        }
    >a:hover{
        color: #fff;
    }
    div{
        position: absolute;
        top: 25px;
        left: -33px;
        z-index: 115;
        display: none;
        i{
            position: relative;
            z-index: 1;
            display: block;
            width: 30px;
            height: 15px;
            margin: 0 auto;
            background: url(../images/index/triangle.png) no-repeat;
        }
        ul{
            min-width: 136px;
            padding: 10px 0;
            border-radius: 4px;
            background: #fff;
            box-shadow: 0 1px 10px 4px rgba(0,0,0,.05);
            li{
                text-align: center;
                a{
                    display: block;
                    height: 40px;
                    line-height: 40px;
                    padding: 0 15px;
                    font-size: 16px;
                    color: #333;
                }
            }
        }
    }
    >span{
        margin: 0 18px;
        color: #ccc;
    }
}
.header > div .header-user .user-center:hover{
    
    >i{
            background: url(../images/index/comSprite.png) no-repeat 0 -88px;
        }
    div{
        display: block;
    }
}

//nav 区域
.nav{
    position: absolute;
    left: 0;
    top: 30px;
    z-index: 110;
    width: 100%;
    background: #fff;
    box-shadow: 0 2px 4px rgba(0,0,0,.05);
    .clearfix:after{
        @include cle;
    }
    >div{
        width: 1080px;
        margin: 0 auto;
        .nav-logo{
            float: left;
            width: 239px;
            height: 98px;
            background: url(../images/index/logo.png) no-repeat 0 center;
        }
        .nav-category{
            position: relative;
            float: left;
            display: none;
            >p{
                height: 60px;
                line-height: 60px;
                cursor: pointer;
                span{
                    font-size: 16px;
                    color: #808080;
                }
                i{
                    display: inline-block;
                    width: 15px;
                    height: 8px;
                    margin-left: 10px;
                    background: url(../images/index/categoryDown.png) no-repeat;
                }
            }
            div{
                display: none;
            }
        }
        .nav-category:hover{
            p{
                span{
                    color: #333;
                }
                i{
                    background: url(../images/index/categoryUp.png) no-repeat;
                }
            }
            div{
                position: absolute;
                left: 0;
                top: 60px;
                display: block;
            }
        }
        .nav-search{
            position:relative;
            float:right;
            margin-top:30px;
            p{
                position: relative;
                z-index: 2;
                border: 1px solid #ccc;
                border-radius: 3px;
                background: #fff;
                input{
                        width: 298px;
                        height: 38px;
                        padding-left: 10px;
                        border: none;
                        line-height: 38px;
                        color: #333;
                        font-size: 16px;
                        border-radius: 3px;
                        vertical-align: middle;
                        outline: none;
                }
                span{
                    display: inline-block;
                    width: 39px;
                    height: 38px;
                    border-left: 1px solid #ccc;
                    vertical-align: middle;
                    background: url(../images/index/search.png) no-repeat center center;
                    cursor: pointer;
                }
            }
            ul{
                display: none;
                position: absolute;
                top: 40px;
                left: 0;
                width: 308px;
                padding: 10px 0;
                background: #fff;
                box-shadow: 1px 0px 15px 5px rgba(0,0,0,.05);
                li{
                    height: 32px;
                    padding: 0 10px;
                    line-height: 32px;
                    font-size: 12px;
                    cursor: pointer;
                    a{
                        color: #808080;
                    }
                }
               
            }
            
        }
        .nav-tab{
            position: absolute;
            bottom: 0;
            span{
                    float: left;
                    width: 180px;
                    height: 40px;
                    padding-left: 20px;
                    line-height: 40px;
                    background: #f2f2f2;
                    color: #333;
                    font-size: 16px;
                    i{
                        display: inline-block;
                        width: 15px;
                        height: 12px;
                        margin-right: 10px;
                        background: url(../images/index/nav-list.png) no-repeat;
                    }
            }
            ul{
                float: left;
                height: 40px;
                line-height: 40px;
                li{
                    display: inline-block;
                    height: 16px;
                    padding: 0 30px;
                    border-right: 1px solid #ccc;
                    line-height: 16px;
                    font-size: 16px;
                    cursor: pointer;
                    a{
                        color: #333;
                    }
                    a:hover{
                        color: #f7b200;
                    }
                }
                .nav-last{
                    border: 0;
                }
            }
        }
    }
}

.retract{
    position: fixed;
    top: 0;
    >div{
        .nav-logo{
            display: none;
        }
        .nav-category{
            display: block;
        }
        .nav-search{
            margin-top: 10px;
            ul{
                li:hover{
                   background: #f0f0f0; 
                }
            }
        }
        .nav-tab{
            display: none;
        }
    }
}

//侧边栏区域
.rightBar{
    position: fixed;
    right: 30px;
    bottom: 100px;
    z-index: 666;
    height: 144px;
    
    >div{
        width: 48px;
        height: 48px;
        cursor: pointer;
    }
    .rightBar-serve{
        background: url(../images/index/rightBar-serve.png) no-repeat 0 center;
        display: none;
        a{
            display: block;
            height: 100%;
        }
    }
    .rightBar-serve:hover{
        background: url(../images/index/serve-hover.png) no-repeat 0 center;
    }
    .rightBar-phone{
        display: none;
        background: url(../images/index/rightBar-phone.png) no-repeat 0 center;
    }
    .rightBar-share{
        display: none;
        background: url(../images/index/rightBar-share.png) no-repeat 0 center;
    }
    .rightBar-share:hover{
        background: url(../images/index/share-hover.png) no-repeat 0 center;
    }
    .rightBar-code{
        position: relative;
        background: url(../images/index/rightBar-code.png) no-repeat 0 center;
        div{
            position: absolute;
            top: -65px;
            left: -310px;
            width: 301px;
            border-radius: 4px;
            box-shadow: 0 1px 10px 4px rgba(0,0,0,.05);
            background: #fff;
            display: none;
            span{
                position: absolute;
                top: 50%;
                right: -15px;
                z-index: 600;
                display: inline-block;
                width: 15px;
                height: 30px;
                margin-top: -14px;
                background: url(../images/index/left-triangle.png) no-repeat;
            }
            dl{
                float: left;
                padding: 10px;
                dt{
                    width: 130px;
                    height: 130px;
                    background: url(../images/index/app.png) no-repeat center center;
                    background-size: 100% 100%;
                }
                dd{
                    margin-top: 10px;
                    text-align: center;
                    font-size: 14px;
                    color: #523669;
                }
            }
            .code-public{
                padding: 4px 4px 10px;
                dt{
                    width: 143px;
                    height: 143px;
                    background: url(../images/index/wxCode.jpg) no-repeat center center;
                    background-size: 100% 100%;
                }
                dd{
                    margin-top: 3px;
                }
            }
        }
    }
    .rightBar-code:hover{
        background: url(../images/index/code-hover.png) no-repeat 0 center;
        div{
            display: block;
        }
    }
    .rightBar-top{
        display: none;
        background: url(../images/index/rightBar-top.png) no-repeat 0 center;
    }
    .rightBar-top:hover{
        background: url(../images/index/top-hover.png) no-repeat 0 center;
    }
}
//二级菜单
.nav-list{
    position: absolute;
    left: 0;
    top: 0;
    z-index: 1;
    height: 320px;
    padding: 20px 0;
    background: url(../images/index/category-back.png);
    >li{
        width: 200px;
        >p{
            height: 40px;
            line-height: 40px;
            padding-left: 30px;
            a{
                font-size: 14px;
                color: #fff;
            }
            a:hover{
                color: #f7b200;
            }
            >span{
                margin: 0 5px;
                font-size: 16px;
                color: #fff !important;
            }
        }
        >ul{
            position: absolute;
            left: 200px;
            top: 0;
            width: 700px;
            min-height: 331px;
            padding: 15px 0;
            background: #fff;
            box-shadow: 1px 0px 15px 5px rgba(0,0,0,.05);
            display: none;
            >li{
                display: block;
                >a{
                    display: inline-block;
                    width: 62px;
                    margin: -2px 10px 0;
                    line-height: 20px;
                    text-align: right;
                    font-size: 14px;
                    color: #333;
                    vertical-align: middle;
                }
                >i{
                    display: inline-block;
                    margin-top: 15px;
                    line-height: 20px;
                    font-size: 14px;
                    color: #333;
                }
                ul{
                    float: right;
                    width: 567px;
                    margin: 0 20px 0 16px;
                    padding-top: 15px;
                    border-bottom: 1px solid #f2f2f2;
                    li{
                        float: left;
                        margin: 0 20px 15px 0;
                        line-height: 20px;
                        a{
                            font-size: 12px;
                            text-align: center;
                            color: #808080;
                        }
                        a:hover{
                            color: #523669;
                        }
                    }
                }
            }
        }
    }
    li:hover{
        background: rgba(255,255,255,.2);
    }
}
.nav-list>li>ul>li:after{
    @include cle;
}


